-
Notifications
You must be signed in to change notification settings - Fork 85
[FSSDK-12107] refactor build system #1130
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
33c8155 to
775a6c5
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This pull request refactors the build system by replacing the Rollup TypeScript plugin with direct TypeScript compilation followed by bundling. It also adds a TypeScript example project to verify TypeScript support and integrates a CI check for it.
Changes:
- Replaced
rollup-plugin-typescript2with directtsccompilation to.build/directory, then bundling from there - Updated Rollup plugins to newer versions and migrated from deprecated plugins to
@rollup/plugin-terser - Added
ts-example/directory with comprehensive TypeScript usage examples and test infrastructure
Reviewed changes
Copilot reviewed 12 out of 16 changed files in this pull request and generated 6 comments.
Show a summary per file
| File | Description |
|---|---|
| tsconfig.json | Added importHelpers: true and split output between .build and dist directories |
| rollup.config.mjs | Refactored to use ES modules, updated plugins, changed input paths to .build/ |
| package.json | Updated build scripts, added tslib, updated plugin dependencies, added ts-example script |
| package-lock.json | Updated all rollup plugins and rollup itself to latest versions |
| ts-example/* | New TypeScript example project demonstrating SDK usage patterns |
| scripts/run-ts-example.js | New script to build SDK and run TypeScript example with datafile server |
| .github/workflows/javascript.yml | Added ts-check job to CI pipeline |
| .gitignore | Added .build/ directory to ignore list |
| lib/index.browser.ts | Removed extraneous blank line |
Files not reviewed (1)
- ts-example/package-lock.json: Language not supported
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
junaed-optimizely
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great work on the type test addition. Looks solid!
77247f1 to
749e806
Compare
Summary
examples/typescriptdirectory with an example typescript project, which is used to check that typescript support is working properly.typescript_testjob to GitHub Actions workflow.Test plan
Issues